﻿<?php 
error_reporting(0);
require_once("admin-header.php");

if(isset($OJ_LANG)){
	require_once("../lang/$OJ_LANG.php");
}

?>
<html>
<head>
<title><?php echo $MSG_ADMIN?></title>

</head>

<body onload="parent.main.location.href='welcome.php'">
Chào mừng <b><?php echo $_SESSION['user_name']."</b> (<i>".$_SESSION['user_id']."</i>)"?>

<hr>
<ol>
	<?php 
	$firstright = $_SESSION['user_rights']{0};
	//if ($firstright == "A") {
	//	echo "<li><a href='admin.php' target='main'><b>DS Người quản lí</b></a></li>"; 
	//} else {
		echo "<li><a href='status.php' target='main'><b>Xem danh sách bài nộp</b></a></li>";
	//}
	if (($firstright == "A")) 
		echo "<li><a href='adduser.php' target='main'><b>Quản lí thí sinh</b></a></li>";
	//if (($firstright == "B"))
		echo "<li><a href='news_list.php' target='main'><b>Đăng tin tức</b></a></li>";
	//if (($firstright == "B"))
		echo "<li><a href='problem_list.php' target='main'><b>Đề bài</b></a></li>";
	//if (($firstright == "B"))
		echo "<li><a href='contest_list.php' target='main'><b>Kì thi</b></a></li>";
	if (($firstright == "A"))
		echo "<li><a href='setmsg.php' target='main'><b>Cài đặt thông báo</b></a></li>";
	echo "<li><a href='../logout.php' target='main'><b>Thoát</b></a></li>";
	?>
	
</ol>

</body>
</html>
